/*
 * @Author: liaoxing
 * @Date: 2021-08-13 10:21:54
 * @LastEditors: liaoxing
 * @LastEditTime: 2021-08-13 11:13:38
 * @Description: file content
 * @FilePath: \bigScreen\src\dev-core\router\pageRouter.js
 */
const lazyLoading = url => () => import(`../view/${url}.vue`)

const Main = lazyLoading('main')
const NotFound = lazyLoading('notFound')

let pageRouter = [
  {
    path: '/',
    name: 'main',
    component: Main,
    children: []
  },
  {
    path: '/notFound',
    name: 'notFound',
    component: NotFound
  },
  {
    path: '*',
    redirect: '/notFound'
  }
]
export default pageRouter